package com.project;

import com.project.bean.AuthorityBean;
import com.project.bean.UserBean;
import com.project.config.MyBatisConfig;
import com.project.service.IUserService;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;


@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = MyBatisConfig.class)
public class test {
    @Autowired
    private IUserService service;
    @Test
    public void test(){
        System.out.println(service.login("张三","111"));
//        service.add(new UserBean("赵六","444"),new Integer[]{3,4,5});
//        System.out.println(service.findById(1));
//        service.update(5,new Integer[]{5,6,7});
//        System.out.println(service.findByItem("添加订单",1));
    }
}
